package controllers

import (
	"gin-study/app/http/requests"
	"github.com/gin-gonic/gin"
)

type RestController interface {
	Index(context *gin.Context) interface{}
	Get(context *gin.Context) interface{}
	Put(context *gin.Context) interface{}
	Post(context *gin.Context) interface{}
	Delete(context *gin.Context) interface{}
}

type Controller struct {
}

func (this *Controller) GetPage(c *gin.Context) *requests.Page {
	var page *requests.Page
	_ = c.Bind(&page)
	return page
}
